
export class SocketMsg {
    public reqId: number;
    public protoType: number;
    public protoName: string;
    public protoData: any;


    public static createSocketMsg(reqId: number, protoType: number, protoName: string, protoData: any) {
        let msg: SocketMsg = new SocketMsg();
        msg.reqId = reqId;
        msg.protoType = protoType;
        msg.protoName = protoName;
        msg.protoData = protoData;
        return msg;
    }
}